fdc0b9dca993293c44e638c9855e59467768befa,documentlibrary-impl/src/com/liferay/documentlibrary/service/impl/DLServiceImpl.java,DLServiceImpl,addFile,#number#String#number#number#String#File#,154
Before Change
InputStream is = null;
try {
is = new BufferedInputStream(new FileInputStream(file));
DLLocalServiceUtil.addFile(
companyId, portletId, groupId, repositoryId, fileName, is);
}
catch (FileNotFoundException fnfe) {
throw new NoSuchFileException(fileName);
After Change
Hook hook = HookFactory.getInstance();
hook.addFile(
companyId, portletId, groupId, repositoryId, fileName, file);
}
public void addFile(